package com.lxn.controller;

import com.lxn.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户服务
 */
@RestController
public class UserController {
    @GetMapping(value = "/user/{id}")
    public User getUserById(@PathVariable("id") Long id){
        return new User(id,"端口:1001");
    }

}
